<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<script type="text/javascript">
$(function(){

    var regEptionBeginTime='${regEptionBeginTime}';
    var regEtionEndTime='${regEtionEndTime}';
	   $('#registExceptionForm').click(function(){
		  
		 $("#exeRegStartTime").val(regEptionBeginTime);
		 $("#exeRegEndTime").val(regEtionEndTime);
		 $("#exeRegUtmcsr").val("");
		 $("#exeRegUtmcmd").val("");
		 $("#exeRegUtmccn").val("");
		 $("#exeRegUserId").val("");
		 $("#exeRegUtmcct").val("");
		 $("#exeRegMarkWords").val("");
	    });
	  });
</script>
<form id="pagerForm" method="post" action="${ctx}/detail/registException">

</form>

<form rel="pagerForm" onsubmit="return navTabSearch(this);">
   
        <input type="hidden" name="pageNum" value="${page.current}" />
    <!--  <input type="hidden" name="pageNum" value="1" /> -->
    <input type="hidden" name="pageSize" value="${page.pageSize}" />
    <input type="hidden" name="numPerPage" value="${page.pageSize}" />
    <input type="hidden" name="regTemp" value="true" />
<input type="hidden" name="regEptionBeginTime" value="${regEptionBeginTime}" />
<input type="hidden" name="regEtionEndTime" value="${regEtionEndTime}" />
	<div class="pageHeader">
		<div class="searchBar">
			<table class="searchContent">
				<tbody>
					<tr>
					
						<td align="right">来源：</td>
						<td align="left"><input type="text" name="utmcsr" id="exeRegUtmcsr"
							class="textInput" value="${form.utmcsr}">
						<td>
						<td align="right">媒介：</td>
						<td align="left"><input type="text" name="utmcmd" id="exeRegUtmcmd"
							class="textInput" value="${form.utmcmd}">
						<td>
						<td align="right">系列：</td>
						<td align="left"><input type="text" name="utmccn" id="exeRegUtmccn"
							class="textInput" value="${form.utmccn}">
						<td>
						
						<td align="right">访问时间：</td>
						<td align="left"><input type="text"
							class="date textInput readonly" readonly="true" dateFmt="yyyy-MM-dd HH:mm:ss"
							value="${form.startTime}" name="startTime" id="exeRegStartTime"> 至 <input
							type="text" class="date textInput readonly" readonly="true" dateFmt="yyyy-MM-dd HH:mm:ss"
							value="${form.endTime}" name="endTime" id="exeRegEndTime">
						<td>
					</tr>
					<tr>
						<td align="right">用户：</td>
						<td align="left"><input type="text" name="userId" id="exeRegUserId"
							class="textInput" value="${form.userId}">
						<td>
						<td align="right">组：</td>
						<td align="left"><input type="text" name="utmcct" id="exeRegUtmcct"
							class="textInput" value="${form.utmcct}">
						<td>
						<td align="right">关键字：</td>
						<td align="left"><input type="text" name="markWords" id="exeRegMarkWords"
							class="textInput" value="${form.markWords}">
						<td>
						
					</tr>

				</tbody>

			</table>
			<div class="subBar">
				<ul>
					<li><div class="buttonActive">
					
							<div class="buttonContent">
							
								<button id="but_submit" >查询</button>
									
							</div>
							
							
						</div></li>
						<li><div class="buttonActive">
							<div class="buttonContent">
								
								<button type="button" id="registExceptionForm">重置</button>
							</div>
						</div></li>
				</ul>
			</div>
		</div>
	</div>
</form>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li >
			<a class="icon" title="确实要导出这些记录吗?" href="${ctx}/detail/export?flag=true" target="dwzExport" targettype="navTab"><span>导出EXCEL</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="168" nowrapTD="false">
		<thead>
			<tr>
				<th align="center">用户</th>
				<th align="center">IP</th>
				<th align="center">访问时间</th>
				<th align="center">时长</th>
				<th align="center">行为</th>
				<th align="center">来源</th>
				<th align="center">媒介</th>
				<th align="center">系列</th>
				<th align="center">组</th>
				
				<th align="center" id="text">关键字</th>
				<th align="center">页面浏览数</th>

			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.data}" var="item">
				<tr target="sid" rel="${item.id}">
					<td><a title="用户详情" href="${ctx}/detail/dataDetail?userId=${item.userId}" target="dialog"  width="1200" height="600" mask="true"style="color: #0082E4;" >${item.userId}</a></td>
					
					<td>${item.ip}</td>	
					<td><fmt:formatDate value="${item.startTime}"
							pattern="yyyy-MM-dd HH:mm:ss" /></td>
							
						
					<td>${item.timeLength}</td>
					<td>
					<span id="userBahavoiorTemp">	${item.behaviorType}</span>
					</td>
					<td>${item.utmcsr}</td>
					<td>${item.utmcmd}</td>
					<td>${item.utmccn}</td>
					<td>${item.utmcct}</td>
					
					<td id="text">${item.utmctr}</td>
					<td>${item.browserCount}</td>
				</tr>
			</c:forEach>

		</tbody>
	</table>
    <%@include file="/WEB-INF/view/commons/paging.jsp"%>
</div>
